package com.paradise.ytj.receiver;


import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.paradise.ytj.activity.VideoActivity;


public class msgReceiver extends BroadcastReceiver {

    // public static String destnumber = "";
    // public static String userdata = "";

    @Override
    public void onReceive(Context context, Intent intent) {

        Bundle b = intent.getExtras();
        if (b != null) {
            String dest = b.getString("number");
            // destnumber = dest;
            //  userdata = b.getString("userdata");

            try {
                Intent intentPhone = new Intent(context, VideoActivity.class);
                intent.putExtra("inout", "out");
                intent.putExtra("object", "");
                intent.putExtra("method", "video");
                intent.putExtra("phone", dest);
                intentPhone.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                context.startActivity(intentPhone);
            } catch (Exception e) {

            }

        }

    }

}
